/**
 * Created with IntelliJ IDEA.
 * Description:
 * Date: 2024-01-18
 * Time:14:48
 */

//键盘类实现USB接口
public class Keyboard extends Computer implements USB{

    @Override
    public void openDevice() {
        System.out.println("连接键盘");
    }

    public void input() {
        System.out.println("使用键盘输入");
    }

    @Override
    public void closeDevice() {
        System.out.println("键盘断开连接");
    }
}
